# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo08
# Description:
# Author:       98745
# Date:         2019/3/10
#-------------------------------------------------------------------------------

import json
import dicttoxml
f=open('files/products.json','r',encoding='utf-8')
js=f.read()
print(js)
dict=json.loads(js)
print(dict)
xml=dicttoxml.dicttoxml(dict).decode('utf-8')
print(xml)
f.close()
